

{include file="public/header"}
<title>详情</title>
</head>
<style>
    .formControls {
        padding-top: 3px;
    }
</style>
<body>
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-member-add">
        <div class="ch-row ch-info-form">
            <div class="flex1">店长列表：</div>
            <div class="flex2">
                <select name="user_id" class="form-control">
                    <option selected="selected" value=" ">请选择</option>
                    {volist name='data' id='v'}
                    <option value="{$v.user_id}">{$v.username}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">底薪：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="di" placeholder="请输入该月底薪">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">收入：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="income" placeholder="请输入该月收入">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">材料成本：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="material" placeholder="请输入材料成本">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">人工成本：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="labor" placeholder="请输入该月人工成本">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">工程利润：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="engineering" placeholder="请输入该工程利润">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">师傅工资：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="wages" placeholder="请输入该月师傅工资">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">房租：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="rents" placeholder="请输入该月房租">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">办公费：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="office" placeholder="请输入该月办公费">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">运费：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="freight" placeholder="请输入该月业绩">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">福利费：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="welfare" placeholder="请输入该月福利费">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">水电物管费：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="water" placeholder="请输入该月水电物管费">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">租金：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="rent" placeholder="请输入该月租金">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">建渣清运费：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="slash" placeholder="请输入该月建渣清运费">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">折旧费：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="depreciation" placeholder="请输入该月折旧费">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">交通费：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="traffic" placeholder="请输入该月交通费">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">营销费：</div>
            <div class="flex2">
                <input type="number" class="form-control fid" value="" name="marketing" placeholder="请输入该月营销费">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">
                <button class="btn btn-primary radius" style="width: 100%" type="button"><i class="Hui-iconfont">&#xe632;</i> 提交</button>
            </div>
        </div>
    </form>
</article>

{include file="public/footer"}
</body>
<script>
    $('.radius').click(function () {
        var src = "{:Url('index/amount/add')}";
        $.ajax({
            type: 'POST',
            url: src,
            dataType: 'json',
            data: $('form').serializeArray(),
            success: function (data) {
                var res = JSON.parse(data);
                if (res.code == 200) {
                    layer.closeAll();
                    layer.msg(res.msg, {icon: 1, time: 2000}, function () {
                        setTimeout("window.parent.location.reload()", 1);
                    });

                } else {
                    layer.msg(res.msg, {icon: 5, time: 1000});
                }

            },
            error: function (data) {
                console.log(data.msg);
            },
        })
    });
</script>


</html>